
/*1. Write a program with a loop running from 1 to 100. 
If the current number is divisible by 3, print <number> - Buzz 
and it the number is visible by 5, print <number> - Light 
and if the number is divisible by both 3 and 5, then print <number> - BuzzLight.
*/

public class LoopDivideBy35 {
	public static void main(String[] args) { 
	      for (int i=1; i<=100; i++){
	    	  
	    	  if (i % 15==0){//i%3 && i%5
	    		  System.out.println(i + " BuzzLight");
	    	  }
 	    	  else if  (i % 5==0){
	    		  System.out.println(i + " Light");
	    	  }
	    	  else if (i % 3==0){
	    		  System.out.println(i + " Buzz");
	    	  }
	    		 
	      }
	}
}
